using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Weapon : MonoBehaviour
{
    public WeaponData data;
    public Image image;
    public Text equipText;

    private void Update()
    {
        if (data != null)
            equipText.gameObject.SetActive(data.isEquipped);
        if (data == null)
            Destroy(gameObject);
    }
    public void showMenu()
    {
        WeaponsBackpackManager.instance.showMenu(data);
    }
}
